[#macro pager page ]
<input type="hidden" id="pageSize" name="pageSize" value="${page.pageSize}" />
<input type="hidden" id="searchProperty" name="searchProperty" value="${(page.searchProperty)!}" />
<input type="hidden" id="orderProperty" name="orderProperty" value="${(page.orderProperty)!}" />
<input type="hidden" id="orderDirection" name="orderDirection" value="${(page.orderDirection)!}" />
[#if page.totalPages > 1]
	<div class="pagination">
		[#if page.pageNumber==1]
			<span class="firstPage">&nbsp;</span>
		[#else]
			<a class="firstPage" href="javascript: $.pageSkip(1);">&nbsp;</a>
		[/#if]
		[#if page.pageNumber > 1]
			<a class="previousPage" href="javascript: $.pageSkip(${page.pageNumber-1});">&nbsp;</a>
		[#else]
			<span class="previousPage">&nbsp;</span>
		[/#if]
		[#list page.firstNo..page.endNo as  segmentPageNumber]
			[#if segmentPageNumber_index == 0 && segmentPageNumber > 2]
				<span class="pageBreak">...</span>
			[/#if]
			[#if segmentPageNumber != page.pageNumber]
				<a href="javascript: $.pageSkip(${segmentPageNumber});">${segmentPageNumber}</a>
			[#else]
				<span class="currentPage">${segmentPageNumber}</span>
			[/#if]
		[/#list]
		[#if page.pageNumber lt page.totalPages]
			<a class="nextPage" href="javascript: $.pageSkip(${page.pageNumber+1});">&nbsp;</a>
		[#else]
			<span class="nextPage">&nbsp;</span>
		[/#if]
		[#if page.pageNumber==page.totalPages]
			<span class="lastPage">&nbsp;</span>
		[#else]
			<a class="lastPage" href="javascript: $.pageSkip(${page.totalPages});">&nbsp;</a>
		[/#if]
		<span class="pageSkip">
			共${page.totalPages}页到第 <input id="pageNumber" name="pageNumber" value="${page.pageNumber}" maxlength="9" onpaste="return false;" />页<button type="submit">&nbsp;</button>
		</span>
	</div>
[/#if]
[/#macro]